package com.ln.asset.core.service.impl;

import com.ln.asset.core.pojo.AssetInfo;
import com.ln.asset.core.mapper.AssetInfoMapper;
import com.ln.asset.core.service.AssetInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 资产管理列表 服务实现类
 * </p>
 *
 * @author qiaoyanru
 * @since 2022-05-02
 */
@Service
public class AssetInfoServiceImpl extends ServiceImpl<AssetInfoMapper, AssetInfo> implements AssetInfoService {

    @Override
    public List<AssetInfo> selectList() {
        List<AssetInfo> list = baseMapper.selectList(null);
        return list;
    }

    @Override
    public AssetInfo selectAssetById(Integer id) {
        AssetInfo assetInfo = baseMapper.selectById(id);
        return assetInfo;
    }
}
